package com.topvision.auth.service;

import com.topvision.auth.domain.SysUser;
import com.topvision.auth.domain.SysUserAccount;
import com.topvision.auth.dto.RegDTO;
import com.topvision.utils.base.JsonResult;

public interface AuthService {
    JsonResult<SysUser> register(RegDTO userToAdd);

    JsonResult<String> login(String username, String password);

    String refresh(String oldToken);

    SysUserAccount checkAccount(String account);

    void restPassword(String account);

}
